import React, { Component } from "react";
import Parent from "./Parent";
import { MsgContext } from "./context";

export default class App extends Component {
  state = {
    msg: "app组件的数据",
  };
  render() {
    return (
      <div>
        <h1>app</h1>
        <MsgContext.Provider value={this.state.msg}>
          <Parent></Parent>
        </MsgContext.Provider>
      </div>
    );
  }
}
